﻿===== GameConfig.CheckUpdateChangedLanguage =====
  IL_0000: ldarg.0      
  IL_0001: ldarg.1      
  IL_0002: ldc.i4.1     
  IL_0003: ldc.i4.1     
  IL_0004: call         CheckDownloadNewerLanguage
  IL_0009: ldarg.0      
  IL_000A: ldarg.1      
  IL_000B: ldc.i4.1     
  IL_000C: call         CheckDownloadNewerCampaigns
  IL_0011: ret          
===== <DownloadConfigFromServer>d__61.MoveNext =====
  IL_0000: ldarg.0      
  IL_0001: ldfld        <>1__state
  IL_0006: stloc.0      
  IL_0007: ldarg.0      
  IL_0008: ldfld        <>4__this
  IL_000D: stloc.1      
  IL_000E: ldloc.0      
  IL_000F: brfalse.s    737587
  IL_0011: ldloc.0      
  IL_0012: ldc.i4.1     
  IL_0013: beq.s        737697
  IL_0015: ldc.i4.0     
  IL_0016: ret          
  IL_0017: ldarg.0      
  IL_0018: ldc.i4.m1    
  IL_0019: stfld        <>1__state
  IL_001E: ldloc.1      
  IL_001F: call         get_Now
  IL_0024: stfld        lastDownloadingConfigTime
  IL_0029: ldloc.1      
  IL_002A: call         GetServerUrl
  IL_002F: ldstr        "/"
  IL_0034: ldsfld       configFile
  IL_0039: ldstr        ".txt"
  IL_003E: call         Concat
  IL_0043: stloc.2      
  IL_0044: ldstr        "GameConfig: Downloading GameConfig from: "
  IL_0049: ldloc.2      
  IL_004A: call         GetUrlWithSecureProtocol
  IL_004F: call         Concat
  IL_0054: call         Log
  IL_0059: ldarg.0      
  IL_005A: ldloc.2      
  IL_005B: call         GetUrlWithSecureProtocol
  IL_0060: call         GetWebGLUrlProxy
  IL_0065: ldnull       
  IL_0066: newobj       .ctor
  IL_006B: stfld        <www>5__2
  IL_0070: ldarg.0      
  IL_0071: ldarg.0      
  IL_0072: ldfld        <www>5__2
  IL_0077: stfld        <>2__current
  IL_007C: ldarg.0      
  IL_007D: ldc.i4.1     
  IL_007E: stfld        <>1__state
  IL_0083: ldc.i4.1     
  IL_0084: ret          
  IL_0085: ldarg.0      
  IL_0086: ldc.i4.m1    
  IL_0087: stfld        <>1__state
  IL_008C: ldc.i4.0     
  IL_008D: stsfld       newConfigValuesDownloaded
  IL_0092: ldarg.0      
  IL_0093: ldfld        <www>5__2
  IL_0098: callvirt     get_error
  IL_009D: call         IsNullOrEmpty
  IL_00A2: brtrue.s     737832
  IL_00A4: ldarg.0      
  IL_00A5: ldfld        <www>5__2
  IL_00AA: callvirt     get_error
  IL_00AF: ldstr        "404"
  IL_00B4: callvirt     Contains
  IL_00B9: brtrue.s     737774
  IL_00BB: ldarg.0      
  IL_00BC: ldfld        <www>5__2
  IL_00C1: callvirt     get_error
  IL_00C6: ldstr        "java.io.FileNotFoundException"
  IL_00CB: callvirt     Contains
  IL_00D0: brfalse.s    737795
  IL_00D2: ldstr        "GameConfig: Download GameConfig connection succeeded but there is no file on server."
  IL_00D7: call         Log
  IL_00DC: ldc.i4.1     
  IL_00DD: stsfld       isDownloadConnectionSucceeded
  IL_00E2: br           738057
  IL_00E7: ldstr        "GameConfig: Download GameConfig failed with error: "
  IL_00EC: ldarg.0      
  IL_00ED: ldfld        <www>5__2
  IL_00F2: callvirt     get_error
  IL_00F7: call         Concat
  IL_00FC: call         Log
  IL_0101: ldc.i4.0     
  IL_0102: stsfld       isDownloadConnectionSucceeded
  IL_0107: br           738057
  IL_010C: ldstr        "GameConfig: Download GameConfig succeeded."
  IL_0111: call         Log
  IL_0116: ldarg.0      
  IL_0117: ldfld        <www>5__2
  IL_011C: callvirt     get_text
  IL_0121: stloc.3      
  IL_0122: ldloc.3      
  IL_0123: call         ReadConfigValues
  IL_0128: stloc.s      local(0x0004)
  IL_012A: ldloc.s      local(0x0004)
  IL_012C: ldsfld       keyGameID
  IL_0131: call         GetConfigValue
  IL_0136: stloc.s      local(0x0005)
  IL_0138: ldloc.s      local(0x0005)
  IL_013A: ldsfld       gameID
  IL_013F: call         op_Inequality
  IL_0144: brfalse.s    737927
  IL_0146: ldloc.s      local(0x0005)
  IL_0148: callvirt     get_Length
  IL_014D: ldc.i4.0     
  IL_014E: ble          738051
  IL_0153: ldstr        "GameConfig: !!! invalid gameID="
  IL_0158: ldloc.s      local(0x0005)
  IL_015A: ldstr        " on server !!!!"
  IL_015F: call         Concat
  IL_0164: call         LogError
  IL_0169: br.s         738051
  IL_016B: ldloc.s      local(0x0004)
  IL_016D: ldsfld       keyConfigVersion
  IL_0172: call         GetConfigValue
  IL_0177: stloc.s      local(0x0006)
  IL_0179: ldloc.s      local(0x0006)
  IL_017B: call         GetVersionNumber
  IL_0180: ldsfld       keyConfigVersion
  IL_0185: call         GetConfigValue
  IL_018A: call         GetVersionNumber
  IL_018F: ble.s        738011
  IL_0191: ldstr        "GameConfig: Downloaded newer GameConfig with version="
  IL_0196: ldloc.s      local(0x0006)
  IL_0198: call         Concat
  IL_019D: call         Log
  IL_01A2: ldsfld       configFile
  IL_01A7: ldloc.3      
  IL_01A8: call         SetString
  IL_01AD: call         Save
  IL_01B2: ldloc.s      local(0x0004)
  IL_01B4: stsfld       configValues
  IL_01B9: ldc.i4.1     
  IL_01BA: stsfld       newConfigValuesDownloaded
  IL_01BF: ldloc.s      local(0x0004)
  IL_01C1: ldsfld       keyApplicationVersion
  IL_01C6: call         GetConfigValue
  IL_01CB: stloc.s      local(0x0007)
  IL_01CD: ldloc.s      local(0x0007)
  IL_01CF: call         GetVersionNumber
  IL_01D4: ldsfld       applicationVersion
  IL_01D9: call         GetVersionNumber
  IL_01DE: ble.s        738051
  IL_01E0: ldloc.s      local(0x0007)
  IL_01E2: stsfld       newerApplicationVersionAvailable
  IL_01E7: ldc.i4.1     
  IL_01E8: stsfld       isDownloadConnectionSucceeded
  IL_01ED: ldc.i4.1     
  IL_01EE: stsfld       isDownloadAttemptFinished
  IL_01F3: ldsfld       newConfigValuesDownloaded
  IL_01F8: brfalse.s    738126
  IL_01FA: ldc.i4.0     
  IL_01FB: stloc.s      local(0x0008)
  IL_01FD: br.s         738112
  IL_01FF: ldsfld       configUpdatedEvents
  IL_0204: ldloc.s      local(0x0008)
  IL_0206: callvirt     get_Item
  IL_020B: brfalse.s    738106
  IL_020D: ldsfld       configUpdatedEvents
  IL_0212: ldloc.s      local(0x0008)
  IL_0214: callvirt     get_Item
  IL_0219: callvirt     Invoke
  IL_021E: ldloc.s      local(0x0008)
  IL_0220: ldc.i4.1     
  IL_0221: add          
  IL_0222: stloc.s      local(0x0008)
  IL_0224: ldloc.s      local(0x0008)
  IL_0226: ldsfld       configUpdatedEvents
  IL_022B: callvirt     get_Count
  IL_0230: blt.s        738075
  IL_0232: ldarg.0      
  IL_0233: ldfld        firstTime
  IL_0238: brfalse      738339
  IL_023D: call         GetSystemLanguageID
  IL_0242: stloc.s      local(0x0009)
  IL_0244: ldsfld       languageFilePrefix
  IL_0249: ldloc.s      local(0x0009)
  IL_024B: ldstr        "_available"
  IL_0250: call         Concat
  IL_0255: stloc.s      local(0x000A)
  IL_0257: ldsfld       languageFilePrefix
  IL_025C: ldloc.s      local(0x0009)
  IL_025E: ldstr        "_syschecked"
  IL_0263: call         Concat
  IL_0268: ldc.i4.0     
  IL_0269: ldsfld       configValues
  IL_026E: ldc.i4.0     
  IL_026F: call         GetLocalizationsInfo
  IL_0274: stloc.s      local(0x000B)
  IL_0276: ldloc.s      local(0x000B)
  IL_0278: ldloc.s      local(0x0009)
  IL_027A: call         FindLanguageInConfig
  IL_027F: stloc.s      local(0x000C)
  IL_0281: dup          
  IL_0282: call         HasKey
  IL_0287: stloc.s      local(0x000D)
  IL_0289: ldc.i4.1     
  IL_028A: call         SetInt
  IL_028F: ldloc.s      local(0x000C)
  IL_0291: ldc.i4.0     
  IL_0292: blt.s        738339
  IL_0294: ldloc.s      local(0x000A)
  IL_0296: call         HasKey
  IL_029B: brtrue.s     738339
  IL_029D: call         GetCurrentLanguageCode
  IL_02A2: ldloc.s      local(0x0009)
  IL_02A4: call         op_Inequality
  IL_02A9: brfalse.s    738331
  IL_02AB: ldloc.s      local(0x000D)
  IL_02AD: brtrue.s     738292
  IL_02AF: ldloc.s      local(0x000A)
  IL_02B1: ldc.i4.1     
  IL_02B2: call         SetInt
  IL_02B7: ldloc.1      
  IL_02B8: ldfld        downloadsQueue
  IL_02BD: ldloc.1      
  IL_02BE: ldloc.s      local(0x0009)
  IL_02C0: ldloc.s      local(0x000B)
  IL_02C2: ldloc.s      local(0x000C)
  IL_02C4: ldelem.ref   
  IL_02C5: ldfld        version
  IL_02CA: ldc.i4.1     
  IL_02CB: ldc.i4.0     
  IL_02CC: call         DownloadLanguageFromServer
  IL_02D1: callvirt     Add
  IL_02D6: ldc.i4.0     
  IL_02D7: ret          
  IL_02D8: ldloc.s      local(0x0009)
  IL_02DA: stsfld       newLanguageInfoCode
  IL_02DF: ldloc.s      local(0x000B)
  IL_02E1: ldloc.s      local(0x000C)
  IL_02E3: ldelem.ref   
  IL_02E4: ldfld        version
  IL_02E9: stsfld       newLanguageInfoVersion
  IL_02EE: ldloc.s      local(0x000B)
  IL_02F0: ldloc.s      local(0x000C)
  IL_02F2: ldelem.ref   
  IL_02F3: ldfld        changeLanguageQuestion
  IL_02F8: stsfld       newLanguageInfoMessage
  IL_02FD: br.s         738339
  IL_02FF: ldloc.s      local(0x000A)
  IL_0301: ldc.i4.1     
  IL_0302: call         SetInt
  IL_0307: ldloc.1      
  IL_0308: call         GetCurrentLanguageCode
  IL_030D: ldarg.0      
  IL_030E: ldfld        firstTime
  IL_0313: ldc.i4.0     
  IL_0314: call         CheckDownloadNewerLanguage
  IL_0319: ldloc.1      
  IL_031A: call         GetCurrentLanguageCode
  IL_031F: ldarg.0      
  IL_0320: ldfld        firstTime
  IL_0325: call         CheckDownloadNewerCampaigns
  IL_032A: ldc.i4.0     
  IL_032B: ret          
